<legend>
    <h4><?php
        echo $control->getAjaxLink(array('name' => '功能列表', 'id' => 'showEventList'), array(
            'cooker' => 'BAEvent@showEventList'
        ));
        ?>\
        <?php
        echo $control->getAjaxLink(array('name' => '会员卡类型', 'id' => 'showCardTypeList'), array(
            'cooker' => 'BAMemberCard@showCardTypeList'
        ));
        ?>\
        添加会员卡        
    </h4>
</legend>
<?php
$form = $this->beginWidget('CActiveForm', array(
    "id" => "addCardForm",
    'enableAjaxValidation' => FALSE,
    'htmlOptions' => array('enctype' => 'multipart/form-data'),
        ));

$model = new BDynamicFormModel();
$fixedCardIdField = 'media_fixedCardId_user_info';
$mobileField = 'media_mobile_user_info';

$model->addField($fixedCardIdField);
$model->addField($mobileField);
?>
<table class="table table-hover">
    <colgroup>
        <col class="span1">
        <col class="span7">
    </colgroup>
    <tbody>
        <tr>
            <td> <?php echo '实体卡号'; ?> </td>
            <td>
                <?php
                echo $form->textField($model, $fixedCardIdField, array('placeholder' => '实体卡号' . '...', 'required' => true));
                ?>
            </td>
        </tr>
        <tr><td> <?php echo '用户手机'; ?> </td>
            <td>
                <?php
                echo $form->textField($model, $mobileField, array('placeholder' => '手机号' . '...', 'required' => true));
                ?>
            </td>
        </tr>       
    </tbody>
</table>

<div class="row-fluid">    
    <?php
    echo $control->getAjaxLink(array('id' => 'addBill', 'name' => '继续添加'), array(
        'cooker' => 'BAMemberCard@showAddCardInfo',
        'htmlOptions' => array('class' => 'btn ')
    ));
    ?>    
</div>

<?php
$this->endWidget();
?>